import React from 'react';
import { Modal, Button } from 'choerodon-ui/pro';
import ModalDetail from './ModalDetail';

const modalKey = Modal.key();

const ModalBaic: React.FC = () => {
  const openModal = () => {
    Modal.open({
      key: modalKey,
      title: '自定义坐标',
      children: <ModalDetail />,
      okText: '确定',
      style: {
        left: 100,
        top: 200,
      },
    });
  };

  return (
    <Button onClick={openModal}>
      自定义坐标
    </Button>
  );
};

export default ModalBaic;